import Home from '../views/home'
import Shop from '../views/shop'
import Pet from '../views/pet'
import Calendar from '../views/calendar'
import My from '../views/my'
import Guide from '../views/guide'
import Detail from '../views/detail'
import ProjectReservation from '../views/project_reservation'
import SetMy from '../views/setMy'
import About from '../views/about'
import Author from '../views/author'
import System from '../views/system'
import Login from '../views/login'
import Regist from '../views/regist'
import AppointmentTime from '../views/appointment_time'

const routes = [
  {
    path: '/',
    element: <Home />,
    title: '首页',
    showMenu: true,
    icon: 'icon-gutou',
  },
  {
    path: '/shop',
    element: <Shop />,
    title: '小店动态',
    showMenu: true,
    icon: 'icon-dongtai',
  },
  {
    path: '/pet',
    element: <Pet />,
    title: '宠物常识',
    showMenu: true,
    icon: 'icon-chongwu',
  },
  {
    path: '/calendar',
    element: <Calendar />,
    title: '预约日历',
    showMenu: true,
    icon: 'icon-icon',
  },
  {
    path: '/my',
    element: <My />,
    title: '我的',
    showMenu: true,
    icon: 'icon-gouwo',
  },
  {
    path: '/guide',
    element: <Guide />,
    title: '注意事项',
    showMenu: false,
    icon: 'icon-gutou1',
  },
  {
    path: '/detail/:id',
    element: <Detail />,
    title: '详情',
    showMenu: false,
    icon: 'icon-gouwo',
  },
  {
    path: '/projectreservation',
    element: <ProjectReservation />,
    title: '项目预约',
    showMenu: false,
    icon: '',
  },
  {
    path: '/setMy',
    element: <SetMy />,
    title: '修改我的个人资料',
    showMenu: false,
    icon: 'icon-gouwo',
  },
  {
    path: '/about',
    element: <About />,
    title: '关于我们',
    showMenu: false,
    icon: 'icon-gouwo',
  },
  {
    path: '/author',
    element: <Author />,
    title: '联系作者',
    showMenu: false,
    icon: 'icon-gouwo',
  },
  {
    path: '/system',
    element: <System />,
    title: '系统后台管理',
    showMenu: false,
    icon: 'icon-gouwo',
  },
  {
    path: '/login',
    element: <Login />,
    title: '登录',
    showMenu: false,
    icon: 'icon-gouwo',
  },
  {
    path: '/regist',
    element: <Regist />,
    title: '注册',
    showMenu: false,
    icon: 'icon-gouwo',
  },
  {
    path: '/appointmenttime',
    element: <AppointmentTime />,
    title: '预约时间',
    showMenu: false,
    icon: 'icon-gouwo',
  },
]

export default routes
